package asa;

public class NumberExpr extends Expr {

    public NumberExpr( int value ) {
        this.value = value;
    }

    public int getValue() {
        return value;
    }

    @Override
	public void genJava(PWInterface pw) {
    	genJava(pw, false);
    }

    @Override
	public void genJava(PWInterface pw, boolean putParenthesis ) {
    	pw.print("" + value);
    }

    private int value;
}
